Refactor RequestUtil into a separate package Move RequestUtil into its own package. This facilitates reuse of request attribute accessor methods by external libraries. Change-Id: Id002eb4f72827d65087a999adbd2ba9a58795fe2 
diff --git a/gerrit-util-http/BUCK b/gerrit-util-http/BUCK new file mode 100644 index 0000000..7041c0a --- /dev/null +++ b/gerrit-util-http/BUCK 
@@ -0,0 +1,20 @@ +java_library( + name = 'http', + srcs = glob(['src/main/java/**/*.java']), + provided_deps = ['//lib:servlet-api-3_1'], + visibility = ['PUBLIC'], +) + +java_test( + name = 'http_tests', + srcs = glob(['src/test/java/**/*.java']), + deps = [ + ':http', + '//lib:junit', + '//lib:servlet-api-3_1', + '//lib/easymock:easymock', + ], + source_under_test = [':http'], + # TODO(sop) Remove after Buck supports Eclipse + visibility = ['//tools/eclipse:classpath'], +)